<!DOCTYPE html>
<html lang="zh-CN">
<head th:replace="common::head">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=320,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="keywords" content="jtfadmin快速开发平台,java快速开发平台"/>
    <meta name="description" content="jtfadmin快速开发平台,java快速开发平台"/>
    <title>jtfadmin快速开发平台</title>
    <link rel="stylesheet"  href="../js/bootstrap-3.4.1-dist/css/bootstrap.min.css"/>
    <script  src="../js/jquery-3.5.1.min.js" type="text/javascript"></script>
    <script  src="../js/bootstrap-3.4.1-dist/js/bootstrap.min.js" type="text/javascript"></script>
    <script  src="../js/bootstrap-3.4.1-dist/js/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>

    <style>
        body {
            padding-top: 70px;
            padding-bottom: 50px;
        }
        .childrenMenu {
            text-align: center;
            border: 2px solid #eee
        }
        .childrenMenu hr {
            border-style: dashed;
            border-color: #2e6da4;
        }

    </style>
    <!--css 增强 -->
    <style type="text/css" th:html="${styleAdd}">

    </style>
</head>
<body>
    <nav class="navbar navbar-default navbar-fixed-top "role="navigation" th:replace="common::menu">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand" href="/" th:if="${sys!=null && sys.logoUrl!=null}">
                    <img th:src="${sys.logoUrl}" style="height: 24px" src="../img/logo.png">
                </a>
                <p class="navbar-text collapse navbar-collapse" >
                    <a href="/" th:href="@{/}" class="navbar-link">jtfadmin 快速开发平台</a>
                </p>
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                    <span class="sr-only">导航条</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>

            <div class="collapse navbar-collapse" id="navbar">
                <ul class="nav navbar-nav">
                    <li th:each="menu : ${menus}" th:class="${meun.style}">
                        <a href="#" th:if="${menu.showChildrenMenu}" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">
                            <span th:text="${menu.name}">下拉菜单</span>
                        </a>
                        <ul class="dropdown-menu" th:if="${menu.showChildrenMenu}">
                            <li th:each="childMenu : ${menu.children}" th:class="${childMenu.style}">
                                <a href="#" th:text="${childMenu.name}" th:href="${childMenu.url}">子菜单1</a>
                            </li>
                        </ul>
<!--                        <a href="#" th:if="${!menu.showChildrenMenu}" th:text="${menu.name}" th:href="${meun.url}">菜单</a>-->
                    </li>

                </ul>
            </div>
        </div>
    </nav>
    <div class="container-fluid" id="content">
        <div class="row" th:if="${banners!=null}">
            <div class="col-md-12">
                <div class="carousel slide" id="carousel-example-generic" data-ride="carousel" data-interval="3000">
                    <ol class="carousel-indicators">
                        <li data-target="#carousel-example-generic" th:each="banner, loopStatus : ${banners}" th:data-slide-to="${loopStatus.index}" th:class="${loopStatus.index == 0 ?'active':''}"></li>
                    </ol>
                    <div class="carousel-inner">
                        <div class="item active" th:each="banner, loopStatus : ${banners}"  th:class="${loopStatus.index == 0 ?'item active':'item'}">
                            <img th:src="@{${banner}}" style="width: 100%">
                        </div>
                    </div>
                    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                        <span class="glyphicon glyphicon-chevron-left"></span>
                    </a>
                    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                        <span class="glyphicon glyphicon-chevron-right"></span>
                    </a>
                </div>
            </div>
        </div>






        <ol class="breadcrumb"  th:if="${menuListList.size>1 }">
            <li th:each="menuList : ${menuListList}" class="dropdown" >
                <span th:each="menu : ${menuList}" th:if="${menu.current}" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">
                    <span th:text="${menu.name}">下拉菜单</span>
                </span>
                <ul class="dropdown-menu">
                    <li t th:each="menu : ${menuList}"  th:class="${menu.style}">
                        <a href="#" th:text="${menu.name}" th:href="@{${menu.url}}">子菜单1</a>
                    </li>
                </ul>

            </li>
        </ol>

        <div>
            <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" th:src="@{${contentUrl}}" ><div th:utext="${content}"></div></iframe>
            </div>

        </div>
    </div>


    <nav class="navbar navbar-default navbar-fixed-bottom" th:replace="common::foot">
        <div class="container">
            <div class="navbar-text" style="text-align: center; width: 100%">
                <span >Copyright © 2021 jiangtaofeng.cn</span>
                <a href="http://beian.miit.gov.cn/" target="_blank" > 豫ICP备2021010489号 </a>
            </div>
        </div>
    </nav>

</body>
</html>
